package com.zc.study.designPattern.创建型设计模式.builderPattern;

public class Test {
    public static void main(String[] args) {
        ActorBuilder ab =new HeroBuilder();
        ActorDirector  ac = new ActorDirector();
        Actor actor  = ac.construct(ab);
        System.out.println(actor.getType()+"的外观");
        System.out.println("性别:"+actor.getSex());
        System.out.println("面容:"+actor.getFace());
        System.out.println("服装:"+actor.getCostume());
        System.out.println("发型:"+actor.getHairstyle());
    }
}
